<?

define("PRIMARY_KEY","kdtools");
$FileName       = "ais_setup_toolcalc.php";
$TableName		= "tbltoolcalc";
$HTMLFormName   = "ToolForm";

if (CheckKey ($DBConnection, $TableName, PRIMARY_KEY, GetParam(PRIMARY_KEY,"")) && GetParam("isEdit","")=="Add") {
	$Message = "Tools Calculator Code allready exist!\\n";
} else {
	$Message = "";
}
	$js_script  = "<script>\n";
	$js_script .= "  top.rpc_errmessage='$Message';\n";
	$js_script .= "</script>\n";		
	print $js_script;
?>